//package com.woniuxy.xiangruicommonutilserver.controller;
//
//import com.alibaba.fastjson.JSONObject;
//import com.woniuxy.bean.ResultBean;
//import com.woniuxy.xiangruicommonutilserver.service.IWorkDayService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
///**
// * @author: masterhai
// * @date: 2021/4/11:19:07
// * @description: 获取每年工作日数据控制层
// */
//@Api("获取工作日接口")
//@RequestMapping(value = "/workday", produces = "application/json;charset=utf-8")
//@RestController
//public class WorkdayController {
//    @Resource
//    private IWorkDayService workDayService;
//
//    //get请求获取每月节假日
//    @ApiOperation("获取指定年份的工作日信息将其插入数据库")
//    @GetMapping("getAndInsert/{year}")
//    public ResultBean getWorkInfo (@ApiParam("年份") @PathVariable("year") String year) {
//        int row = workDayService.insertWorkDayInfo2DB(year);
//        return ResultBean.builder().code(2001).msg(row > 0 ? "数据插入成功" : "插入失败,请联系管理员").build();
//    }
//}
